<?php

declare(strict_types=1);

namespace app\operations\model;

use sheep\model\Common;

class Store extends Common
{

    protected $name = 'shop_store';

    // 追加属性
    protected $append = [
        'type_text',
        'status_text'
    ];

    protected $type = [
        'service_images' => 'json',
        'path_images' => 'json',
        'photo_images' => 'json'
    ];

    /**
     * 默认状态列表
     *
     * @return array
     */
    public function typeList()
    {
        return [
            '1' => '电商商家',
            '2' => '团购商家',
            '3' => '外卖商家',
            '4' => '供应链',
        ];
    }


    /**
     * 默认状态列表
     *
     * @return array
     */
    public function statusList()
    {
        return [
            'normal' => '正常',
            'close' => '停业',
        ];
    }

    /**
     * 默认状态列表
     *
     * @return array
     */
    public function service_Features()
    {
        return [
            '24小时营业',
            '免费WIFI',
            '免费停车',
        ];
    }
    
}
